package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.shushan.ShuShanBuildData;
import com.yanqu.road.entity.activity.shushan.ShuShanDiscipleData;
import com.yanqu.road.entity.activity.shushan.ShuShanLiLianGridData;
import com.yanqu.road.entity.activity.shushan.ShuShanUserData;
import com.yanqu.road.entity.activity.shushan.config.*;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

/**
 * @Description
 * @Author cwq
 * @Data 2022/3/8 11:50
 */
public class ShuShanBusiness {

    // ShuShanUserData
    public static List<ShuShanUserData> getShuShanUserDataList(int activityId) {
        return DaoHelper.getShuShanUserDataDaoImpl().getShuShanUserDataList(activityId);
    }

    public static boolean updateShuShanUserData(ShuShanUserData item) {
        return DaoHelper.getShuShanUserDataDaoImpl().update(item);
    }

    public static boolean addShuShanUserData(ShuShanUserData item) {
        return DaoHelper.getShuShanUserDataDaoImpl().add(item);
    }

    // ShuShanBuildData
    public static Map<Long, Map<Integer, ShuShanBuildData>> getShuShanBuildDataMap(int activityId) {
        return DaoHelper.getShuShanBuildDataDaoImpl().getShuShanBuildDataMap(activityId);
    }

    public static boolean updateShuShanBuildData(ShuShanBuildData item) {
        return DaoHelper.getShuShanBuildDataDaoImpl().update(item);
    }

    public static boolean addShuShanBuildData(ShuShanBuildData item) {
        return DaoHelper.getShuShanBuildDataDaoImpl().add(item);
    }

    // ShuShanDiscipleData
    public static Map<Long, List<ShuShanDiscipleData>> getShuShanDiscipleDataMap(int activityId) {
        return DaoHelper.getShuShanDiscipleDataDaoImpl().getShuShanDiscipleDataMap(activityId);
    }

    public static boolean updateShuShanDiscipleData(ShuShanDiscipleData item) {
        return DaoHelper.getShuShanDiscipleDataDaoImpl().update(item);
    }

    public static boolean addShuShanDiscipleData(ShuShanDiscipleData item) {
        return DaoHelper.getShuShanDiscipleDataDaoImpl().add(item);
    }

    // ShuShanLiLianGridData
    public static Map<Long, Map<Integer, ShuShanLiLianGridData>>  getShuShanLiLianGridDataMap(int activityId) {
        return DaoHelper.getShuShanLiLianGridDataDaoImpl().getShuShanLiLianGridDataMap(activityId);
    }

    public static boolean updateShuShanLiLianGridData(ShuShanLiLianGridData item) {
        return DaoHelper.getShuShanLiLianGridDataDaoImpl().update(item);
    }

    public static boolean addShuShanLiLianGridData(ShuShanLiLianGridData item) {
        return DaoHelper.getShuShanLiLianGridDataDaoImpl().add(item);
    }

    // config
    public static List<ShuShanBuildConfig> getShuiHuYeZiCardCardConfigList(int activityId) {
        return DaoHelper.getShuShanConfigDataDaoImpl().getShuShanBuildConfigList(activityId);
    }

    public static List<ShuShanSkillConfig> getShuShanSkillConfigList(int activityId) {
        return DaoHelper.getShuShanConfigDataDaoImpl().getShuShanSkillConfigList(activityId);
    }

    public static List<ShuShanLiLianConfig> getShuShanLiLianConfigList(int activityId) {
        return DaoHelper.getShuShanConfigDataDaoImpl().getShuShanLiLianConfigList(activityId);
    }

    public static List<ShuShanEventConfig> getShuShanEventConfigList(int activityId) {
        return DaoHelper.getShuShanConfigDataDaoImpl().getShuShanEventConfigList(activityId);
    }

    public static List<ShuShanRewardConfig> getShuShanRewardConfigList(int activityId) {
        return DaoHelper.getShuShanConfigDataDaoImpl().getShuShanRewardConfigList(activityId);
    }

}
